package com.syh.jn.scm.domain.supplier.repository.stock;

import com.syh.core.ddd.infrastructure.repository.ReadRepo;
import com.syh.jn.scm.domain.supplier.entity.stock.StockLoss;
import com.syh.jn.scm.domain.supplier.entity.stock.StockLossItem;

public interface StockLossReadRepository extends ReadRepo<StockLoss, Long> {
  boolean stockLossItemExistsById(String column, Long id);

  /**
   * 获取明细对象
   *
   * @param id      明细id
   * @param goodsId 明细商品id
   * @return
   */
  StockLossItem getItemByIdAndGoodsId(Long id, Long goodsId);
}
